package ltd.hxya.novel.entity.book;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import ltd.hxya.novel.entity.base.BaseEntity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 小说表
 * </p>
 *
 * @author hty
 * @since 2022-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("book")
@ApiModel(value="Book对象", description="小说表")
public class Book extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "作品方向，0：男频，1：女频'")
    private Boolean workDirection;

    @ApiModelProperty(value = "分类ID")
    private Integer catId;

    @ApiModelProperty(value = "分类名")
    private String catName;

    @ApiModelProperty(value = "排行榜类型id")
    private String rankTypeId;

    @ApiModelProperty(value = "小说封面")
    private String picUrl;

    @ApiModelProperty(value = "小说名")
    private String bookName;

    @ApiModelProperty(value = "作者id")
    private String authorId;

    @ApiModelProperty(value = "作者名")
    private String authorName;

    @ApiModelProperty(value = "书籍描述")
    private String bookDesc;

    @ApiModelProperty(value = "评分，预留字段")
    private Float score;

    @ApiModelProperty(value = "书籍状态，0：连载中，1：已完结")
    private Boolean bookStatus;

    @ApiModelProperty(value = "点击量")
    private Long visitCount;

    @ApiModelProperty(value = "总字数")
    private Integer wordCount;

    @ApiModelProperty(value = "评论数")
    private Integer commentCount;

    @ApiModelProperty(value = "最新目录ID")
    private String lastIndexId;

    @ApiModelProperty(value = "最新目录名")
    private String lastIndexName;

    @ApiModelProperty(value = "最新目录更新时间")
    private LocalDateTime lastIndexUpdateTime;

    @ApiModelProperty(value = "是否收费，1：收费，0：免费")
    private Boolean isVip;

    @ApiModelProperty(value = "状态，0：禁用，1：正常")
    private Boolean status;


    @ApiModelProperty(value = "爬虫源站ID")
    private Integer crawlSourceId;

    @ApiModelProperty(value = "抓取的源站小说ID")
    private String crawlBookId;


    @ApiModelProperty(value = "是否已停止更新，0：未停止，1：已停止")
    private Boolean crawlIsStop;


}
